/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.strategy.dto;


import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 策略开关-合约
 *
 * @since 2022-11-24 10:39:27
 */
@Data
public class StrategySwitchContractConditionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 策略id
     */
    @NotNull(message = "参数异常，strategyId不能为空")
    private Long strategyId;

    /**
     * 状态（0暂停、1运行中、2已结束、3关闭、4异常）
     */
    private String status;

    /**
     * 当前币对价格
     */
    private BigDecimal currentPrice;

    /**
     * 张数面值
     */
    private BigDecimal sheetValue;

    /**
     * 当前利润最小值
     */
    private BigDecimal currentProfitMin;

    /**
     * 当前利润最大值
     */
    private BigDecimal currentProfitMax;
}
